const APIRrror = require('../rest').APIError //错误请求方式
const IndexControls = require('../controllers/IndexControls');
const DealerControls = require('../controllers/DealerControls');
const ManufacturerControls = require('../controllers/ManufacturerControls');
const SellerControls = require('../controllers/SellerControls');

module.exports = {
    // index
    'GET /': IndexControls.getIndex,

    // Dealer
    'GET /dealer/profile': DealerControls.getProfile,
    'POST /dealer/profile': DealerControls.changeProfile,
    'GET /dealer/dealerDeal': DealerControls.getDealerDeal,
    'PUT /dealer/dealerDeal': DealerControls.putDealerDeal,
    'POST /dealer/dealerDeal': DealerControls.changeDealerDeal,

    // Manufacturer
    'GET /manufacturer/profile': ManufacturerControls.getProfile,
    'POST /manufacturer/profile': ManufacturerControls.changeProfile,
    'GET /manufacturer/manufacturerDaily': ManufacturerControls.getManufacturerDaily,
    'PUT /manufacturer/manufacturerDaily': ManufacturerControls.putManufacturerDaily,
    'GET /manufacturer/manufacturerDeal': ManufacturerControls.getManufacturerDeal,
    'PUT /manufacturer/manufacturerDeal': ManufacturerControls.putManufacturerDeal,
    'POST /manufacturer/manufacturerDeal': ManufacturerControls.changeManufacturerDeal,

    // Seller
    'GET /seller/profile': SellerControls.getProfile,
    'POST /seller/profile': SellerControls.changeProfile,
};